package eu.telecombretagne.rsm.protocol.ABP.util;

import java.util.Observable;


public class Automata extends Observable {
	private AutomataState state;
	
	public Automata (AutomataState ae, Boolean emission) {
		state = ae;
		addObserver(new AutomataObserver(emission));
	}
	
	public void setState(AutomataState ae){
		state = ae;
		setChanged();
		notifyObservers();
	}
	
	public AutomataState getState(){
		return state;
	}
}